<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
  <!-- start goods list -->
  <div class="list-div" id="listDiv">
<?php endif; ?>
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>
      <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
      <a href="javascript:listTable.sort('id'); "><?php echo $this->_var['lang']['record_id']; ?></a><?php echo $this->_var['sort_id']; ?>
    </th>
    <th>用户头像</th>
    <th>用户名</th>
    <th>用户ID</th>
    <th>分享类型</th>
    <th>分享状态</th>
   <th>分享时间</th>
   <th>分享链接</th>
   
  <tr>
  <?php $_from = $this->_var['share_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
  <tr>
    <td><input type="checkbox" name="checkboxes[]" value="<?php echo $this->_var['item']['id']; ?>" /><?php echo $this->_var['item']['id']; ?></td>
    
    <td align="right"><img src="<?php echo $this->_var['item']['headimgurl']; ?>" width="20" height="20"/></td>
    <td align="right"><?php echo $this->_var['item']['user_name']; ?></td>
    <td align="right"><?php echo $this->_var['item']['openid']; ?></td>
    <td align="right"><?php echo $this->_var['lang']['share_type']['\$item']['share_type']; ?></td>
    <td align="right"><?php echo $this->_var['lang']['share_status']['\$item']['share_status']; ?></td>
    <td align="right"><?php echo $this->_var['item']['add_time']; ?></td>
    <td align="right"><?php echo $this->_var['item']['link_url']; ?></td>

  </tr>
  <?php endforeach; else: ?>
  <tr><td class="no-records" colspan="10"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
  <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    <?php echo $this->fetch('page.htm'); ?>
    </td>
  </tr>
</table>

<?php if ($this->_var['full_page']): ?>
</div>

<!-- div>
  <input type="hidden" name="act" value="batch" />
  <input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" id="btnSubmit" name="btnSubmit" class="button" disabled="true" />
</div-->
</form>

<script type="text/javascript">
  listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
  listTable.pageCount = <?php echo $this->_var['page_count']; ?>;

  <?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
  listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

  
  onload = function()
  {
    startCheckOrder(); // 开始检查订单
    document.forms['listForm'].reset();
  }


</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>